import request from '@/utils/request'

export function getListAPI(params) {
  return request({
    url: '/parking/area/list',
    params
  })
}

/**
 * 添加月卡
 * @param {*} data 
 * @returns 
 */
export function createAPI(data) {
  return request({
    url: '/parking/area',
    method: 'POST',
    data
  })
}


/**
 * 编辑数据
 * @param {*} data 
 * @returns 
 */
export function editAPI(data) {
  return request({
    url: 'parking/area',
    method: 'PUT',
    data
  })
}


/**
 * 删除月卡
 * @param {*} id
 * @returns
 */
export function delAPI(id) {
  return request({
    url: `/parking/area/${id}`,
    method: 'DELETE'
  })
}

